﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace TMDT.BusinessObjects
{
    public class NoiDungSanPham
    {
        public Guid IDSanPham { get; set; }
        public Guid IDThuocTinh { get; set; }
        public string NoiDung { get; set; }

        public static NoiDungSanPham Convert(DataRow row)
        {
            NoiDungSanPham noiDungSanPham = new NoiDungSanPham();
            noiDungSanPham.IDSanPham = new Guid(row["IDSanPham"].ToString());
            noiDungSanPham.IDThuocTinh = new Guid(row["IDThuocTinh"].ToString());
            noiDungSanPham.NoiDung = row["NoiDung"].ToString();

            return noiDungSanPham;
        }
    }
}
